//
//  ViewController.m
//  bankdemo
//
//  Created by figs on 15/11/20.
//  Copyright © 2015年 luoqj. All rights reserved.
//

#import "ViewController.h"
#import "SelectBankSheetView.h"
#import "BankSelectView.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
//    UIViewController *con = self.navigationController.viewControllers[1];
//    [self.navigationController popToViewController:con animated:YES];
//    [self.navigationController popToRootViewControllerAnimated:YES];
   [self addSelectBankSheetView];
}
- (void)viewDidAppear:(BOOL)animated{
//    SelectBankSheetView*selectbankview=[[SelectBankSheetView alloc]initWithTitle:@"" delegate:self];
//    [self presentViewController:selectbankview animated:NO completion:nil];
}
-(void)addSelectBankSheetView{
    BankSelectView*selectbankview=[BankSelectView showInView:self.view];
    selectbankview.target=self;
//       [selectbankview showInView:self.view];
//    selectbankview.view.frame = CGRectMake(0,0, 320, 800);
//    [self.view addSubview:selectbankview];
//    selectbankview.view.backgroundColor=[UIColor redColor];
//   [self.view addSubview:selectbankview.view];
    
}
-(void)getBankInfo:(NSString*)bankName bankType:(NSString*)bankType{
    NSLog(@"111%@,%@",bankName,bankType);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
